import request from '@/utils/request'

// 查询订单详细项列表
export function listOrder_item(query) {
  return request({
    url: '/shop/order_item/list',
    method: 'get',
    params: query
  })
}

// 查询订单详细项详细
export function getOrder_item(orderItemId) {
  return request({
    url: '/shop/order_item/' + orderItemId,
    method: 'get'
  })
}

// 新增订单详细项
export function addOrder_item(data) {
  return request({
    url: '/shop/order_item',
    method: 'post',
    data: data
  })
}

// 修改订单详细项
export function updateOrder_item(data) {
  return request({
    url: '/shop/order_item',
    method: 'put',
    data: data
  })
}

// 删除订单详细项
export function delOrder_item(orderItemId) {
  return request({
    url: '/shop/order_item/' + orderItemId,
    method: 'delete'
  })
}
